// 
//  Product.m
//  iShop
//
//  Created by svp on 1/6/12.
//  Copyright 2012 __MyCompanyName__. All rights reserved.
//

#import "Product.h"

#import "BaseProduct.h"
#import "Promotion.h"
#import "Shop.h"
#import "SubProduct.h"

@implementation Product 

@dynamic Amount;
@dynamic ProductPromoPrice;
@dynamic ProductRefCode;
@dynamic ProductID;
@dynamic ProductUnitPrice;
@dynamic Promotion;
@dynamic BaseProduct;
@dynamic Shop;
@dynamic SubProducts;


-(NSNumber*) getPriceUnit
{
	return self.Promotion ? self.ProductPromoPrice : self.ProductUnitPrice;
}
@end
